$NG.AllReady(function (page, { useValuesChange,useDataIndexChange,useUpdateRows,useUpdateRow }) {
    const mstform = $NG.getCmpApi("p_form_return_task_m")
    const dgrid = $NG.getCmpApi("p_form_return_task_d")


    useValuesChange(({args})=>{
        getPtInfoByPhid()
    },"p_form_return_task_m.phid_pc")
    //获取项目信息
    getPtInfoByPhid()
    function getPtInfoByPhid() {
        if (mstform.getItem("phid_pc").getValue()) {
          $NG.execServer("getPtInfoByPhid", { phid: mstform.getItem("phid_pc").getValue() }, function (res) {
            const datas = JSON.parse(res.data)[0].extendObjects;
            console.log(datas);
            $NG.updateState((updater) => {
              updater.data.p_form_return_task_m.setProps({
                //项目编码
                u_pc_no: datas.pc_no,
              });
            });
          });
        }
      }
      if(page.oType == 'add'){
        dgrid.addRows(
            [1,2,3,4,5].reduce((value,item)=>{
                value.push({
                    u_hkjd_name:String(item).padStart(2,"0")
                })
                return value
            },[])
        )
        dgrid.refreshView()
      }
})